import request from '@/until/request'
import Vue from 'vue';



// h5页面提交接口
export const qrQuotaSubmit = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}qrQuota/submit`,
    method: 'post',
    data: params,
    headers: {
      isToken: false,
      repeatSubmit: false
    }
  })
}


// h5初始化
export const qrQuotaInit = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}qrQuota/init`,
    method: 'get',
    params: params,
    headers: {
      isToken: false,
      repeatSubmit: false
    }
  })
}

// 上传
export const fileUploadFile = (params) => {
  return request({
    url: `${Vue.prototype.$configURL}fileUpload/file`,
    method: 'put',
    data: params,
    headers: {
      isToken: false,
      'Content-Type': 'multipart/form-data',
      repeatSubmit: false
    }
  })
}
